#ifndef __SPI_H_
#define __SPI_H_

#include "system.h"

#define SPI_PIN GPIO_Pin_3|GPIO_Pin_4|GPIO_Pin_5

typedef enum {
	SPI_Speed_high,
	SPI_Speed_low
}SPI_Speed;

void SPI1_Init(void);
void SPI1_SetSpeed(SPI_Speed speed);
u8 SPI1_WriteByte(u8 SPI_Data);

#endif
